package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_HT_MDao;
import com.zhongchaowuye.pojo.B_HT_M;
import com.zhongchaowuye.service.B_HT_MService;

@Transactional
@Service("b_HT_MService")
public class B_HT_MServiceImpl implements B_HT_MService
{
	@Resource
	B_HT_MDao b_HT_MDao;
	
	@Override
	public int insertB_HT_M(B_HT_M b_HT_M) {
		// TODO Auto-generated method stub
		return b_HT_MDao.insertB_HT_M(b_HT_M);
	}

	@Override
	public int updateB_HT_M(B_HT_M b_HT_M) {
		// TODO Auto-generated method stub
		return b_HT_MDao.updateB_HT_M(b_HT_M);
	}

	@Override
	public int delB_HT_M(B_HT_M b_HT_M) {
		// TODO Auto-generated method stub
		return b_HT_MDao.delB_HT_M(b_HT_M);
	}
	
	@Override
	public B_HT_M getB_HT_M(B_HT_M b_HT_M) {
		// TODO Auto-generated method stub
		return b_HT_MDao.getB_HT_M(b_HT_M);
	}
	
	@Override
	public List<Map<String, Object>> getB_HT_MList(B_HT_M b_HT_M) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_HT_M.getPageIndex(),b_HT_M.getPageSize(),true);
		return b_HT_MDao.getB_HT_MList(b_HT_M);
	}
}
